package com.apigen.platform;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * API生成平台启动类
 *
 * @author API Generator
 * @since 2025-09-24
 */
@SpringBootApplication
@MapperScan("com.apigen.platform.mapper")
@EnableTransactionManagement
public class ApiGeneratorPlatformApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiGeneratorPlatformApplication.class, args);
        System.out.println();
        System.out.println("  _____ _____ _____   _____                           _             ");
        System.out.println(" |  _  |  _  |_   _| |   __|___ ___ ___ ___ ___| |___ ___ ");
        System.out.println(" |     |   __| | |   |  |  | -_|   | -_|  _| .'|  _| . |  _|");
        System.out.println(" |__|__|__|    |_|   |_____|___|_|_|___|_| |__,|_| |___|_|  ");
        System.out.println("                                                           ");
        System.out.println(" :: API Generator Platform ::                    (v1.0.0)");
        System.out.println();
        System.out.println(" 🚀 应用启动成功！");
        System.out.println(" 📖 接口文档地址: http://localhost:8999/doc.html");
        System.out.println(" 🔧 Druid监控地址: http://localhost:8999/druid");
        System.out.println(" 💡 健康检查地址: http://localhost:8999/actuator/health");
        System.out.println();
    }
}
